package com.logistics.modules.transportationManagement.controller;

import com.logistics.common.utils.HttpUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * http测试
 *
 * @author 水穷处云起时
 * @date 2022/05/28
 */
@RestController
public class HttpTest {

    /**
     * http测试
     */
    @GetMapping("/HttpTest")
    public String httpTest() {
        try {
            String s = HttpUtils.sendGet("https://api.shadiao.app/chp");
            return s;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "";
    }
}
